using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using System.Windows;
using System.Diagnostics;
using System.Threading;
using System.Windows.Forms;
using System.Net;
using System.Web;

namespace Rapier.Kodachi
{
    public class GlobalExceptionHandler
    {
        private Exception currentException;

        public GlobalExceptionHandler(Exception exception)
        {
            currentException = exception;
        }

        public void HandleException()
        {
            try
            {
                System.Windows.Forms.Application.Run(new ErrorWindow(currentException));
            }
            catch
            {
            }
        }
    }
}
